<%@ Page language="c#" Inherits="FlashBack.Web.Browser" CodeFile="Default.aspx.cs" %>
<HTML>
	<HEAD>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<LINK REL="stylesheet" Type="text/css" HREF="FlashBack.css" />
		<title>Flashback main page</title>
		<script src="cjs/ua.js"></script>
		<script language="javascript">
    var CurrPath = "";
    var CurrMode = null;
    
    function OnSearch(i_srcString)
    {
		NavigateMainView("ThumbNails.aspx" + "?" + i_srcString);
		CurrMode = "ThumbNails";
    }
    
    function OnSlideShow()
    {
		NavigateMainView("SlideShow.aspx" + CurrPath);
		CurrMode = "SlideShow";
    }

    function OnThumbNails()
    {
		NavigateMainView("ThumbNails.aspx" + CurrPath);
		CurrMode = "ThumbNails";
    }
    
    function OnNewPath(i_path)
    {
		re = /%%/g;
		i_path = i_path.replace(re,"'");
		
		CurrPath = "?path=" + escape(i_path);
		
		if(i_path.indexOf("Movie") != -1)
		{
			OnMovies();		
			return;
		}
		
		if(CurrMode == "SlideShow")
			OnSlideShow();
		else
			OnThumbNails();
    }
    
    function OnMovies()
    {
		NavigateMainView("MovieShow.aspx" + CurrPath);
    }
    
    function OnUploadFolder()
    {
		alert("This will open a new Windows Explorer window.\nThe contents of this window will show the \nupload directory on the Server.\n\nYou can drag and drop your pictures directly\nto this window.\nPlease create a new folder and upload your\npictures there.");
		window.open("UploadPictures.aspx","_new");
    }
    
    function NavigateMainView(i_url)
    {
		var mv = document.getElementById("MainView");
		if(mv)
			mv.src = i_url;
    }
    
		</script>
	</HEAD>
	<FRAMESET COLS="20%,80%">
		<% =NavigatorFrame %>
		<FRAME id="MainView" SRC="Welcome.aspx">
	</FRAMESET>
</HTML>
